import { ApiCall } from "tsrpc";
import { ReqDeleteMail, ResDeleteMail } from "../../../shared/protocols/masterServer/mail/PtlDeleteMail";
import { DBMail } from "../../DBMail";
import { MasterServerConn } from "../../MasterServer";

export async function ApiDeleteMail(call: ApiCall<ReqDeleteMail, ResDeleteMail>) {
    let req = call.req;
    DBMail.deleteMail(req.mailId);
    call.succ({});
}